package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 资产区间，取交集
 */
@ApiModel(description = "资产区间，取交集")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class CustomerFilterAsset   {
  @JsonProperty("total")
  private AssetRange total = null;

  @JsonProperty("totalMarket")
  private AssetRange totalMarket = null;

  public CustomerFilterAsset total(AssetRange total) {
    this.total = total;
    return this;
  }

  /**
   * Get total
   * @return total
  **/
  @ApiModelProperty(value = "")

  @Valid

  public AssetRange getTotal() {
    return total;
  }

  public void setTotal(AssetRange total) {
    this.total = total;
  }

  public CustomerFilterAsset totalMarket(AssetRange totalMarket) {
    this.totalMarket = totalMarket;
    return this;
  }

  /**
   * Get totalMarket
   * @return totalMarket
  **/
  @ApiModelProperty(value = "")

  @Valid

  public AssetRange getTotalMarket() {
    return totalMarket;
  }

  public void setTotalMarket(AssetRange totalMarket) {
    this.totalMarket = totalMarket;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomerFilterAsset customerFilterAsset = (CustomerFilterAsset) o;
    return Objects.equals(this.total, customerFilterAsset.total) &&
        Objects.equals(this.totalMarket, customerFilterAsset.totalMarket);
  }

  @Override
  public int hashCode() {
    return Objects.hash(total, totalMarket);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomerFilterAsset {\n");
    
    sb.append("    total: ").append(toIndentedString(total)).append("\n");
    sb.append("    totalMarket: ").append(toIndentedString(totalMarket)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

